package com.ch.home.mapper.restDishMapper;

import com.ch.home.bean.Dish;
import com.ch.home.bean.DishAndSources;
import com.ch.home.bean.DishCustom;

import java.util.LinkedList;

/**
 * Created by CHEN on 2019/8/27.
 */
public interface DishCustomMapper {

    /**
     * 查询信息
     * @param dishCustom
     * @return
     */
    LinkedList<DishCustom> getDishCustom(DishCustom dishCustom);




    /**
     * 拿到连表查询的有关信息
     * @param dishCustom
     * @return
     */
    LinkedList<DishCustom> getDishCustomAndSource(DishCustom dishCustom);

    /**
     * 新增Dish
     * @param dishCustom
     * @return
     */
    int addDishCustom(DishCustom dishCustom);

    /**
     * 更新Dish
     * @param dishCustom
     * @return
     */
    int updateDishCustom(DishCustom dishCustom);

}
